
-- GameServer2MapInstance
-- {
	GS2MI_MESSAGE_NONE = CSMSG_COUNT

	G2M_INITIALIZE_INSTANCE = CSMSG_COUNT+1  -- `instance`

	G2M_CHARACTER_TELEPORT_BEGIN_ENTER_INSTANCE_CANCEL = CSMSG_COUNT+2  -- `instance`
	G2M_CHARACTER_TELEPORT_FAILED = CSMSG_COUNT+3  -- `player`
	G2M_CHARACTER_ENTER_MAP = CSMSG_COUNT+4  -- `instance`
	G2M_CHARACTER_LEAVE_MAP = CSMSG_COUNT+5  -- `player`
	G2M_CHARACTER_LOGOUT_GAME = CSMSG_COUNT+6  -- `instance`

	G2M_TEAM_INFO = CSMSG_COUNT+7  -- `instance`
	G2M_TEAM_MEMBER_ADD = CSMSG_COUNT+8  -- `instance`
	G2M_TEAM_MEMBER_QUIT = CSMSG_COUNT+9  -- `instance`
	G2M_TEAM_LEADER_CHANGE = CSMSG_COUNT+10  -- `instance`
	G2M_TEAM_DISBAND = CSMSG_COUNT+11  -- `instance`

	G2M_TRY_GUILD_CREATE = CSMSG_COUNT+12  -- `rpc,player`
	G2M_GUILD_CREATE_RESP = CSMSG_COUNT+13  -- `rpc,player`
	G2M_JOIN_GUILD_EVENT = CSMSG_COUNT+14  -- `player`
	G2M_QUIT_GUILD_EVENT = CSMSG_COUNT+15  -- `player`

	G2M_GET_CHAT_MESSAGE_THING = CSMSG_COUNT+16  -- `rpc,player`
	G2M_BUY_SPECIAL_SHOP_ITEM = CSMSG_COUNT+17  -- `rpc,player`

	G2M_GET_OPERATING_REWARD_ITEMS = CSMSG_COUNT+18  -- `rpc,player`

	G2M_PLAYBOSS_STRIKE = CSMSG_COUNT+19  -- `instance`
	G2M_PLAYBOSS_DEAD = CSMSG_COUNT+20  -- `instance`
	G2M_PLAYBOSS_STOP = CSMSG_COUNT+21  -- `instance`

	GS2MI_MESSAGE_COUNT = CSMSG_COUNT+22
-- }

-- GateServer2GameServer
-- {
	GATE2GAME_MESSAGE_NONE = 0

	CGG_REGISTER = 1
	SGG_REGISTER_RESP = 2

	FLAG_GATE2GAME_MSG_NEED_REGISTER_BEGIN = 3

	CGG_TRANS_CLIENT_PACKET = 4
	SGG_TRANS_CLIENT_PACKET = 5  -- `ignore`

	SGG_ADD_MAP_SERVER = 6
	SGG_REMOVE_MAP_SERVER = 7

	SGG_PUSH_SERVER_ID = 8
	SGG_PUSH_SOCIAL_LISTEN = 9
	SGG_PUSH_PACKET_TO_ALL_CLIENT = 10

	CGG_ACCOUNT_LOGIN_SUCC = 11
	CGG_ACCOUNT_LOGOUT = 12
	SGG_KICK_ACCOUNT = 13
	SGG_KILL_ACCOUNT = 14
	SGG_PUSH_CHARACTER = 15
	SGG_PUSH_PLAYER = 16

	GATE2GAME_MESSAGE_COUNT = 17
-- }

-- GateServer2MapServer
-- {
	GATE2MAP_MESSAGE_NONE = 0

	CGM_REGISTER = 1
	SGM_REGISTER_RESP = 2

	FLAG_GATE2MAP_MSG_NEED_REGISTER_BEGIN = 3

	CGM_TRANS_PLAYER_PACKET = 4  -- `ignore`
	SGM_TRANS_CLIENT_PACKET = 5  -- `ignore`

	CGM_TRANS_INSTANCE_PACKET = 6  -- `ignore`
	SGM_TRANS_MAP_SERVER_PACKET = 7  -- `ignore`

	SGM_TRANS_SOCIAL_SERVER_PACKET = 8  -- `ignore`

	SGM_PUSH_PACKET_TO_ALL_CLIENT = 9

	GATE2MAP_MESSAGE_COUNT = 10
-- }

-- MapServer2GameServer
-- {
	MAP2GAME_MESSAGE_NONE = 0

	MS_REGISTER = 1
	GS_REGISTER_RESP = 2

	FLAG_MAP2GAME_MSG_NEED_REGISTER_BEGIN = 3

	MS_RPC_INVOKE_RESP = 4  -- `ignore`
	GS_RPC_INVOKE_RESP = 5  -- `ignore`

	GS_TRANS_INSTANCE_PACKET = 6  -- `ignore`
	GS_TRANS_PLAYER_PACKET = 7  -- `ignore`

	GS_TRANS_CROSS_SERVER_PACKET = 8  -- `ignore`

	MS_TO_SOCIAL_SERVER_PACKET = 9

	GS_PUSH_SERVER_ID = 10

	MS_KICK = 11
	MS_CHARACTER_SAVED = 12
	MS_UPDATE_CHARACTER_INFO = 13

	GS_START_WORLD_MAP = 14
	GS_START_INSTANCE = 15
	GS_STOP_INSTANCE = 16

	MS_SWITCH_MAP = 17
	GS_CHARACTER_TELEPORT_BEGIN_ENTER_INSTANCE = 18
	MS_CHARACTER_TELEPORT_BEGIN_ENTER_INSTANCE_RESULT = 19
	MS_CHARACTER_ENTER_MAP_RESP = 20
	MS_CHARACTER_LEAVE_MAP_RESP = 21

	MS_UPDATE_ACTIVITY_OBJECT_POSITION = 22
	MS_QUERY_ACTIVITY_OBJECT_POSITION = 23  -- `rpc`

	MS_MAP_TEAM_CREATE = 24
	MS_MAIL = 25

	GS_SYNC_PLAYER_LEVEL_MAX = 26
	GS_SYNC_OPERATING_CARES = 27

	MS_FINISH_GUILD_LEAGUE = 28

	MAP2GAME_MESSAGE_COUNT = 29
-- }

-- MapServer2CrossServer
-- {
	MAP2CROSS_MESSAGE_NONE = 0

	SMC_TRANS_INSTANCE_PACKET = 1  -- `ignore`
	SMC_TRANS_PLAYER_PACKET = 2  -- `ignore`
	SMC_TRANS_CLIENT_PACKET = 3  -- `ignore`
	SMC_TRANS_GAME_SERVER_PACKET = 4  -- `ignore`

	CMC_RPC_INVOKE_RESP = 5  -- `ignore`
	SMC_RPC_INVOKE_RESP = 6  -- `ignore`

	SMC_START_INSTANCE = 7
	SMC_STOP_INSTANCE = 8

	SMC_QUERY_PLAYER_LEVEL_MAX = 9  -- `rpc`

	CMC_PLAYBOSS_CHANGE_TEAM = 10
	CMC_PLAYBOSS_BROADCAST = 11
	CMC_PLAYBOSS_STRIKE = 12
	CMC_PLAYBOSS_SYNC = 13
	CMC_PLAYBOSS_JOIN = 14

	MAP2CROSS_MESSAGE_COUNT = 15
-- }

-- GateServer2SocialServer
-- {
	GATE2SOCIAL_MESSAGE_NONE = 0

	CGT_REGISTER = 1
	SGT_REGISTER_RESP = 2

	FLAG_GATE2SOCIAL_MSG_NEED_REGISTER_BEGIN = 3

	CGT_TRANS_SERVER_PACKET = 4  -- `ignore`
	CGT_TRANS_CLIENT_PACKET = 5  -- `ignore`
	SGT_TRANS_CLIENT_PACKET = 6  -- `ignore`

	CGT_UPDATE_GS_GATE_SN = 7

	SGT_PUSH_PACKET_TO_ALL_CLIENT = 8

	GATE2SOCIAL_MESSAGE_COUNT = 9
-- }

-- GameServer2SocialServer
-- {
	GAME2SOCIAL_MESSAGE_NONE = 0

	CGX_REGISTER = 1
	SGX_REGISTER_RESP = 2

	FLAG_GAME2SOCIAL_MSG_NEED_REGISTER_BEGIN = 3

	CGX_BROADCAST_SERVICES = 4  -- `ignore`

	CGX_RPC_INVOKE_RESP = 5  -- `ignore`
	SGX_RPC_INVOKE_RESP = 6  -- `ignore`

	SGX_TO_ALL_MAP_SERVER_PACKET = 7
	SGX_TO_MAP_SERVER_INSTANCE_PACKET = 8
	SGX_TO_MAP_SERVER_PLAYER_PACKET = 9
	SGX_TO_INSTANCE_PACKET = 10
	SGX_TO_PLAYER_PACKET = 11

	CGX_PUSH_SERVER_ID = 12

	SGX_KICK = 13

	CGX_RESTORE_CHARACTERS = 14
	CGX_CHARACTER_ONLINE = 15
	CGX_CHARACTER_OFFLINE = 16

	CGX_UPDATE_GAME_SERVER = 17  -- `s2guild,s2rank`
	CGX_UPDATE_CHARACTER_INFO = 18  -- `s2guild`

	SGX_PULL_CHARACTER_INFOS = 19  -- `rpc`
	CGX_PULL_GUILD_INFOS = 20  -- `rpc,s2guild`

	CGX_GET_ALL_GUILDS = 21  -- `s2guild`
	SGX_PUSH_ALL_GUILDS = 22
	CGX_GET_ALL_CHARACTER_GUILDS = 23  -- `s2guild`
	SGX_PUSH_CHARACTER_GUILDS = 24
	SGX_CHARACTER_JOIN_GUILD = 25
	SGX_CHARACTER_QUIT_GUILD = 26

	CGX_TRY_GUILD_CREATE = 27  -- `rpc,s2guild`
	CGX_GUILD_CREATE = 28  -- `rpc,s2guild`
	CGX_GUILD_INVITE = 29  -- `s2guild`
	CGX_GUILD_INVITE_RESP = 30  -- `s2guild`
	CGX_GUILD_APPLY = 31  -- `s2guild`
	CGX_GUILD_APPLY_RESP = 32  -- `s2guild`
	CGX_GUILD_LEAVE = 33  -- `s2guild`
	CGX_GUILD_KICK = 34  -- `s2guild`
	CGX_GUILD_RISE = 35  -- `s2guild`
	CGX_GUILD_DISBAND = 36  -- `rpc,s2guild`
	CGX_GUILD_GET_APPLY = 37  -- `s2guild`

	CGX_RANK_NEW_PLAYER = 38  -- `s2rank`
	CGX_RANK_UPDATE_PLAYER = 39  -- `s2rank`
	CGX_RANK_REMOVE_PLAYER = 40  -- `s2rank`
	CGX_RANK_NEW_GUILD = 41  -- `s2rank`
	CGX_RANK_UPDATE_GUILD = 42  -- `s2rank`
	CGX_RANK_REMOVE_GUILD = 43  -- `s2rank`

	CGX_RANK_GET_GUILD_RANK_VALUE = 44  -- `rpc,s2rank`
	CGX_RANK_GET_GUILD_ID_LIST = 45  -- `rpc,s2rank`

	CGX_OPERATING_GET_LIST = 46  -- `s2operating`
	CGX_OPERATING_GET_DETAIL = 47  -- `s2operating`
	CGX_OPERATING_GET_SHORT_HOT = 48  -- `s2operating`
	CGX_OPERATING_BUY = 49  -- `s2operating`
	CGX_OPERATING_GET_REWARD = 50  -- `s2operating`
	CGX_OPERATING_LOGIN = 51  -- `s2operating`
	CGX_OPERATING_PAY = 52  -- `s2operating`
	CGX_OPERATING_COST = 53  -- `s2operating`
	CGX_OPERATING_GAIN_SCORE = 54  -- `s2operating`
	CGX_OPERATING_PLAY_ACTVT = 55  -- `s2operating`
	CGX_OPERATING_EVENT_ACTVT = 56  -- `s2operating`
	SGX_SAVE_LAST_OPERATING_EVENT_TIME = 57
	SGX_SEND_OPERATING_REWARD_MAIL = 58
	SGX_SYNC_OPERATING_CARES = 59

	GAME2SOCIAL_MESSAGE_COUNT = 60
-- }
